package com.words.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new JWTInerceptor())
//                .addPathPatterns("/**")         //拦截所有访问
//                .excludePathPatterns(
//                        "/user/login",
//                        "/user/register"); //登录、注册接口放行
//    }
}
